gtkwindow: Correct device check
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 24 Apr 2020 21:04:27 +0000 (23:04 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 24 Apr 2020 21:04:27 +0000 (23:04 +0200)
commitd104efe06e2af085e2bf14f6cd51bbfb0d707f1e
tree311da0f7c9007f406db3e466aa529f87f4ceb9c9
parent2a877a9be54d2048939c64aa787a8a6a26b0c3ce
gtkwindow: Correct device check

This function to revoke implicit grabs may be called with a NULL
device, which means all devices should be revoked. Fix the check
so this actually happens.

Fixes implicit grabs (maybe) being unset in result to a GTK grab.
gtk/gtkwindow.c